CC="xcrun -sdk iphoneos clang"
export AS="gas-preprocessor.pl -arch arm -- $CC"
CFLAGS="-arch armv7 -fembed-bitcode -miphoneos-version-min=7.0"
ASFLAGS="$CFLAGS"
CXXFLAGS="$CFLAGS"
LDFLAGS="$CFLAGS"

CC=$CC ./configure \
--enable-static \
--enable-pic \
--disable-shared \
--host=arm-apple-darwin \
--extra-cflags="$CFLAGS" \
--extra-asflags="$ASFLAGS" \
--extra-ldflags="$LDFLAGS" \
--prefix=`pwd`/build_out/x264/thin/armv7

make clean
make -j8
make install
